package cn.yunhe.service;

import cn.yunhe.entity.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserService extends UserDetailsService {


    List<UserInfo> findAll();

    void insertUser(UserInfo userInfo);

    void deleteUser(Integer userId);

    UserInfo findUserByIdAndAllRole(Integer id);

    UserInfo findById(Integer id);

    List<UserInfo> findUserByLike(String userName);

}
